﻿<%@ Page Title="关于我们" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="About.aspx.cs" Inherits="StoragePeriod.Web.About" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <%--
       <li class="rightClick" id="rightMenuItem_${ItemID}" _listid="${ListID}" _itemid="${ItemID}" _Conid="${ConID}" _type="${BillTypeCode}" _billstatus="${BillState}" _id="${ID}" _billpk="${BillPK}"  _actiongroup="本身操作" oncontextmenu="$(this).billmenusource();return false;">
            <div style="width: auto; height: auto;" class="tips"><div class="tips-outer">
                <div class="tips-inside">
                    <a class="tips-close" href="#" style="display: none;">×</a>
                    <div class="tips-content ">
                        <ul>
                            {{tmpl(ContractDocList) "#contractDocListItemTmpl"}}
                        </ul>
                    </div>
                </div>
            </div>
            <div class="tips-arrow1" style=""></div>
            <div class="tips-arrow2"></div></div>
        </div>
   </li>--%>
    <script id="selectTmpl" type="text/x-jquery-tmpl">

        <option value="${Value}">${Text}</option>

    </script>
    <script type="text/javascript">
        function loadAjax() {
            sp.ajax.call("Report", { FunType: "Default" },
            function (res) {
                alert('ok' + res.Data);
                $("#title").text(res.FullMsg);
                $(res.Data).each(function () {
                    $('#res').append(this.Name + "-" + this.Age);
                });

            }, null, true)
        }
//        $(function () {
//            sp.ajax.call("Common", { FunType: "RawType" }, function (res) {
//                $("#selectTmpl").tmpl(res.Data).appendTo("#selectData");
//            }, null, true)
//        });
    
    </script>
    <script src="Scripts/notepad.js" type="text/javascript"></script>

    <script type="text/x-jquery-tmpl" id="simpleTmpl">
        <h1>${title}</h1>
        <p>{{html body}}</p>
    </script>

    <script type="text/x-jquery-tmpl" id="listItemTmpl">
        <li>${text}<span style='margin-left:2em;'><b>${name}</b></span></li>
    </script>

    <script type="text/x-jquery-tmpl" id="listTmpl">
        <div>
            <h2>${title}</h2>
            <ul> 
                {{tmpl(list) "#listItemTmpl"}}
            </ul>
        </div>
    </script>

    <script type="text/javascript">
        $(function () {
            note.init({
                container: "#noteMain",
                item: ".noteItem",
                second: 2
            });
        });

    </script>
    <style type="text/css">
        .noteItem {display:none; width:100%; background-color:#fff; padding:1em; height:280px; }

    </style>

</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        关于
    </h2>

      <div id="noteMain" style="padding:0; border:2px solid #0094ff; height:280px; overflow:hidden; background-color:#fff; line-height:25px;">
        
        <div class="noteItem" tmpl="#simpleTmpl" datatype="simple" type="welcome">

        </div>

        <div class="noteItem" tmpl="#listTmpl" datatype="list" type="work">

        </div>
        
        <div class="noteItem" tmpl="#listTmpl" datatype="list" type="foodtesting">

        </div>

    </div>


    <div>
        <br />
        <input type="button" name="name" value="Test" onclick="loadAjax();" />
        <br />
        <h1 id="title">
        </h1>
        <div id="res" style="border: 2px solid #ccc; min-height: 200px;">
        </div>
        <br />
        <asp:Button Text="Valiable" runat="server" PrivCode="RPT00188" />
        <asp:Button Text="Enable" runat="server" PrivCode="RPT00100" />
        <asp:Button Text="Enable" runat="server" PrivCode="RPT00102" />
        <asp:ImageButton ImageUrl="http://pic.cnblogs.com/face/u198826.png" PrivCode="RPT00102"
            runat="server" />
        <br />
        <br />
        <div>
            <select id="selectData">
            </select>
        </div>
    </div>
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
    <p>
        <asp:Label Text="Selected Index" runat="server" ID="lb_selected" />
    </p>
</asp:Content>
